home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / BORLAND TURBO / BATCH.PAK / BATCHDOC.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  2.7 KB  |  85 lines

  1. /**************************************************************************
  2.  *
  3.  *  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4.  *  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5.  *  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6.  *  PURPOSE.
  7.  *
  8.  *  Copyright (c) 1994 - 1995    Microsoft Corporation.    All Rights Reserved.
  9.  *
  10.  **************************************************************************/
  11. // batchdoc.h : interface of the CBatchDoc class
  12. //
  13. /////////////////////////////////////////////////////////////////////////////
  14.  
  15. class CBatchDoc : public CDocument
  16. {
  17. protected: // create from serialization only
  18.     CBatchDoc();
  19.     DECLARE_DYNCREATE(CBatchDoc)
  20.  
  21. // Attributes
  22. public:
  23.     AVICOMPRESSOPTIONS    AVIVideoOptions;
  24.     AVICOMPRESSOPTIONS    AVIAudioOptions;
  25.     CStringList FileList;
  26.     CString TargetDir;
  27.     CListBox ListBox;
  28.     int iCurFile;    // which file in the list is compressing?
  29.     int iFirstFile;    // where in list box the file list starts
  30.     int iPercent;    // how far compressed a file is
  31.     BOOL fCompressing;    // are we compressing?
  32.     BOOL fStopPlease;    // please stop compressing
  33.     
  34. // Operations
  35. public:
  36.     void FixListBox();    // The text to print has changed
  37.     void DeleteSelection();            // delete all selected files
  38.     void CompressList();                // Compress all files in this DOC
  39.     HRESULT CompressFile(int ipos);    // compress a file
  40.     
  41. // Overrides
  42.     // ClassWizard generated virtual function overrides
  43.     //{{AFX_VIRTUAL(CBatchDoc)
  44.     public:
  45.     virtual BOOL OnNewDocument();
  46.     //}}AFX_VIRTUAL
  47.  
  48. // Implementation
  49. public:
  50.     virtual ~CBatchDoc();
  51.     virtual void Serialize(CArchive& ar);   // overridden for document i/o
  52. #ifdef _DEBUG
  53.     virtual void AssertValid() const;
  54.     virtual void Dump(CDumpContext& dc) const;
  55. #endif
  56.  
  57. protected:
  58.  
  59. // Generated message map functions
  60. protected:
  61.     //{{AFX_MSG(CBatchDoc)
  62.     afx_msg void OnOptionsCompress();
  63.     afx_msg void OnOptionsVideo();
  64.     afx_msg void OnOptionsAudio();
  65.     afx_msg void OnOptionsTargetDir();
  66.     afx_msg void OnOptionsAddfile();
  67.     afx_msg void OnOptionsInterleave();
  68.     afx_msg void OnUpdateCompress(CCmdUI* pCmdUI);
  69.     afx_msg void OnUpdateAddfile(CCmdUI* pCmdUI);
  70.     afx_msg void OnUpdateAudio(CCmdUI* pCmdUI);
  71.     afx_msg void OnUpdateInterleave(CCmdUI* pCmdUI);
  72.     afx_msg void OnUpdateTargetDir(CCmdUI* pCmdUI);
  73.     afx_msg void OnUpdateVideo(CCmdUI* pCmdUI);
  74.     afx_msg void OnUpdateDeleteSel(CCmdUI* pCmdUI);
  75.     afx_msg void OnOptionsDeleteSel();
  76.     afx_msg void OnUpdateFileClose(CCmdUI* pCmdUI);
  77.     afx_msg void OnUpdateFileSave(CCmdUI* pCmdUI);
  78.     afx_msg void OnUpdateFileSaveAs(CCmdUI* pCmdUI);
  79.     afx_msg void OnUpdateAppExit(CCmdUI* pCmdUI);
  80.     //}}AFX_MSG
  81.     DECLARE_MESSAGE_MAP()
  82. };
  83.  
  84. /////////////////////////////////////////////////////////////////////////////
  85.